<template>
<div class="nav-bar">
  <div class="nav-left">
    <slot name="left"></slot>
  </div>
  <div class="nav-center">
    <ul>
      <li><slot name="center"></slot></li>
    </ul>
  </div>
  <div class="nav-right">
    <slot name="right"></slot>
  </div>
</div>
</template>

<script>
export default{
  name: 'Navbar'
}
</script>

<style scoped>
.nav-bar{
  display: flex;
  width: 100%;
  height: 50px;
  font-size: 14px;
  background-color: #000;
}
.nav-left{
  flex: 1;
  /* position: relative; */
}
.nav-center{
  flex: 2;
}
.nav-right{
  flex: 1;
}
</style>
